package com.mtw.bbs.userAdmin.feign;


import com.mtw.bbs.common.core.vo.Result;
import com.mtw.bbs.common.web.interceptor.BaseFeignInterceptor;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import static com.mtw.bbs.common.core.constant.ApiPrefix.API_PREFIX_USER_FLOW;

/**
 * resource Feign接口类
 */
@FeignClient(
        value = "bbs-user",
        contextId = "flowClientI",
        configuration = BaseFeignInterceptor.class,
        fallback = FlowClientFallback.class
)
public interface FlowClient {


    @ApiOperation(value = "查询用户的关注", notes = "根据用户id查询用户关注的用户的id")
    @GetMapping(value = API_PREFIX_USER_FLOW+"/getFlowUserById")
    Result<List<String>> getFlowUserById(@RequestParam("userId") String userId);







}
